<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<img src="" alt="" id="img">
<form action="/api/v1/get?XDEBUG_SESSION_START=16032" method="post">
    <input type="text" name="ik" id="ik"><br>
    <input type="text" name="name"><br>
    <input type="text" name="verify" onclick="getImg()"><br>
    <input type="submit">
</form>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script>
    function getImg() {
        $.ajax({
            url: '/api/v1/img?XDEBUG_SESSION_START=12160&ik=' + $("#ik").val() + "&t=" + Math.random(),
            method: 'get',
            success: function (res) {
                $("#img").attr("src", res.data)
            }
        })
    }
</script>
</body>
</html>